<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var myTime=localStorage.pagecount=1;

    if (localStorage.pagecount)
    {
        myTime++;
    }
    else
    {
        myTime=1;
    }


    document.write("Visits: " + myTime + " time(s).");

</script>
</body>
</html>